﻿@{
    Layout = null;

    List<Quest> list = ViewBag.list;
}
@foreach (Quest q in list)
{
    <tr qid="@q.ID">
        <td>@q.ID</td>
        <td class="left">
            @q.Title
            <br />
            @q.OptionA
            <br />
            @q.OptionB
            <br />
            @q.OptionC
            <br />
            @q.OptionD
            <br />
            答案： @q.Answer
            <br />
            @q.Analysis
            <br />
            @q.Point
        </td>
        <td>
            <a title="编辑" class="layui-btn layui-btn-primary" href="@Url.Action("QuestEdit",new { ID = q.ID })"><i class="layui-icon layui-icon-edit"></i>编辑</a>
            <button title="删除" class="layui-btn layui-btn-danger" onclick="del(this);"><i class="layui-icon layui-icon-delete"></i>删除</button>
        </td>
    </tr>
}